import { _decorator, Component, Node } from 'cc';
import { Panel, UIManager } from '../../Scripts/Framework/Managers/UIManager';
const { ccclass, property } = _decorator;

@ccclass('WorldUI')
export class WorldUI extends Component {

    private static instance: WorldUI;
    public static get Instance(): WorldUI {
        return this.instance;
    }

    protected onLoad(): void {
        WorldUI.instance = this;
    }

    start() {

    }

    update(deltaTime: number) {

    }

    Back() {
        UIManager.ShowPanel(Panel.LoadingPanel, "Start");
    }

    DIY() {
        UIManager.ShowPanel(Panel.LoadingPanel, "DIYScene");
    }

}


